from django.urls import path
from . import views
from rest_framework.routers import DefaultRouter

urlpatterns = [
    path("labels/",views.LabelsListAPIView.as_view()),
    path("labels/users/",views.LabelUsersAPIView.as_view()),
    path("questions/<label_id>/label/<str:keyword>/",views.LabelQuestionsAPIView.as_view()),
    path("questions/",views.QuestionsAPIView.as_view()),
    path("labels/<int:pk>/",views.LabelRetrieveAPIView.as_view()),
    path("labels/<int:pk>/<str:keyword>/",views.LabelFocusAPIView.as_view()),
    path("questions/<int:pk>/",views.QuestionsDetialAPIView.as_view()),
    path("questions/<int:pk>/<str:keyword>/",views.QuestionUsefulAPIView.as_view()),
    path("reply/<int:pk>/<str:keyword>/",views.ReplyUsefulAPIView.as_view()),
    path("labels/full/",views.LabelFullAPIView.as_view()),

]


router = DefaultRouter()

router.register("reply",views.ReplyModelViewSet,"reply")

urlpatterns += router.urls